export default {
    data() {
        return {
            description:{},
            id:''
        }
    },
    created() {
        this.description = JSON.parse(JSON.parse(localStorage.collection).description)
        this.id = JSON.parse(localStorage.collection).id
        localStorage.removeItem('collection')
    },
    methods: {
        restDragMaxWidth(dom) {
            let clientWidth = dom.clientWidth
            dom.style.maxWidth = clientWidth + 'px'
        },
        getFileSuffix(fileName) {
            let index = fileName.lastIndexOf('.')
            let oldSuffix = fileName.substr(index+1).toLowerCase()
            console.log('oldSuffix',oldSuffix);
            let typeObj = this.$CONST.global.fileType
            let suffix = typeObj[oldSuffix]
            return suffix
        }
    },
}